<?php use_stylesheet('main.css') ?>
<span class="heading1">My Statistics</span>
<table id="data_list">
  <tbody>
    <tr>
      <th>Join Date</th>
      <th>User</th>
      <th>Investment</th>
      <th>Ref. user</th>
      <th>Place under user</th>
      <th>Position</th>
      <th>Plan</th>
    </tr>
    <?php
    foreach ($xistsUsers as $xistsUser):?>
    <tr>
      <td><?php echo $xistsUser->getCreatedAt('d-m-y') ?></td>
      <td><?php echo $xistsUser->getUsername() ?></td>
      <td><?php echo sfConfig::get('app_currency') ?> <?php echo $xistsUser->getDepositAmount() ?></td>
      <td><?php echo $xistsUser->getRefUsername() ?></td>
      <td><?php echo $xistsUser->getPlaceUnderUsername() ?></td>
      <td><?php echo XistsUserPeer::$joinPostion[$xistsUser->getJoinPosition()] ?></td>
      <td><?php echo $xistsUser->getXistsPlan()->getName() ?></td>
    </tr>
    <?php
    endforeach; ?>
  </tbody>
  <?php if (!count($xistsUsers)): ?>
  <tfoot>
    <tr>
      <td colspan="6">Oops! No User Found</td>
    </tr>
  </tfoot>
  <?php endif;?>
</table>
